#define _CRT_SECURE_NO_WARNINGS 1
#include"Queue.h"

void Queuetest()
{
	Queue p;
	QueueInit(&p);
	QueuePush(&p, 1);
	QueuePush(&p, 2);
	QueuePush(&p, 3);
	QNode* cur = p.head;
	while (cur)
	{
		printf("%d ", cur->data);
		cur = cur->next;
	}
	printf("\n");

	QueuePop(&p);
	while (cur)
	{
		printf("%d ", cur->data);
		cur = cur->next;
	}
	printf("\n");


	if (!QueueEmpty(&p))
	{
		printf("%d ", QueueFront(&p));
	}
	printf("\n");

	printf("%d\n", Queuesize(&p));

	QueueDestroy(&p);
}

int main()
{
	Queuetest();

	return 0;
}